/**
 * 
 */
package com.zufangbao.earth.service;

import java.util.List;

import com.demo2do.core.service.GenericService;
import com.demo2do.core.web.resolver.Page;
import com.zufangbao.earth.entity.contractpartical.ContractPartical;
import com.zufangbao.gluon.exception.CommonException;
import com.zufangbao.sun.entity.contract.Contract;

/**
 * @author wukai
 *
 */
public interface ContractParticalService extends GenericService<ContractPartical> {
	
	List<ContractPartical> listAssignContracByUniqueIdAndAppId(
			String particalUniqueId, String appId, Page page);
	
	List<ContractPartical> listAssignContracByUniqueIdAndAppId(
			String particalUniqueId, String appId);

	List<Contract> listNoAssignContract(String appId, Page page);

	void assignContract(String particalUniqueId, Long contractId) throws CommonException;

	void revokeContract(String particalUniqueId, Long contractId) throws CommonException;

	void assignContracts(String uniqueId, List<Long> contractIdList) throws CommonException;

	void revokeContracts(String uniqueId, List<Long> contractIdList) throws CommonException;

}
